package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_Puton", catalog="Id")
public class TccPuton extends BaseEntity<TccPuton> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="AssembleBid", nameJava="assembleBid", typeDataBase="varchar")
	private String assembleBid;
	@YsField(nameDataBase="StockControlId", nameJava="stockControlId", typeDataBase="bigint")
	private Long stockControlId;
	@YsField(nameDataBase="Chw", nameJava="chw", typeDataBase="varchar")
	private String chw;
	@YsField(nameDataBase="PutonStatus", nameJava="putonStatus", typeDataBase="tinyint")
	private Integer putonStatus;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccPuton setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TccPuton setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public String getAssembleBid() {
		return assembleBid;
	}
	public TccPuton setAssembleBid(String assembleBid) {
		this.assembleBid = assembleBid;
		return this;
	}
	public Long getStockControlId() {
		return stockControlId;
	}
	public TccPuton setStockControlId(Long stockControlId) {
		this.stockControlId = stockControlId;
		return this;
	}
	public String getChw() {
		return chw;
	}
	public TccPuton setChw(String chw) {
		this.chw = chw;
		return this;
	}
	public Integer getPutonStatus() {
		return putonStatus;
	}
	public TccPuton setPutonStatus(Integer putonStatus) {
		this.putonStatus = putonStatus;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccPuton setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccPuton setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccPuton setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccPuton tccPuton(
		String bid,
		String assembleBid,
		Long stockControlId,
		String chw,
		Integer putonStatus,
		Integer status
			) {
		TccPuton entity = new TccPuton();
		entity.setBid(bid);
		entity.setAssembleBid(assembleBid);
		entity.setStockControlId(stockControlId);
		entity.setChw(chw);
		entity.setPutonStatus(putonStatus);
		entity.setStatus(status);
		return entity;
	}
}